﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_Tooltongji.aspx.cs" Inherits="Web.admin_Tooltongji" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>用品统计</title>
    
      <script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
        <link href="css/Page.css" rel="stylesheet" type="text/css" />
         <script type="text/javascript" src="js/FusionCharts.js"></script>

    
</head>
<body>
    <form id="form1" runat="server">
    <div>
         <table style="border: 1px solid #9abddd;" border="0" cellpadding="0" cellspacing="0" width="98%">
            <tr>
                <td colspan="4" class="TitleBar"  align="center">
                  用品统计信息
                </td>
            </tr>
            
                <tr>
                <td class="Pager" colspan="3" style="padding-right: 30px; text-align:left; padding-left:50px;  border:solid 1px #999;">
              开始时间：<asp:TextBox ID="BeginDataTime" runat="server" onclick="new WdatePicker({dateFmt:'yyyy-MM-dd'});" Width="70px" TabIndex="10"></asp:TextBox>
                    结束时间：<asp:TextBox ID="EndDataTime" runat="server" onclick="new WdatePicker({dateFmt:'yyyy-MM-dd'});" Width="70px" TabIndex="11"></asp:TextBox>
                         部门：
                     <asp:DropDownList ID="ddldepartType" runat="server" TabIndex="6" Width="70px"  AutoPostBack="true"
                        onselectedindexchanged="ddldepartType_SelectedIndexChanged" >
                    </asp:DropDownList>
              
                 <asp:DropDownList ID="ddlemploy" runat="server" TabIndex="4" Width="70px" >
                    </asp:DropDownList>
                   
                </td>
                
                <td class="Pager"  style="padding-right: 30px; text-align:left;  border:solid 1px #999;">
                 <asp:Button runat="server" ID="btn_ok" Text="查询结果" onclick="btn_ok_Click"  />
                </td>
                
            </tr>
            <tr  style=" display:none;">  <td colspan="3"  style=" border:solid 1px #999;">
            <div id="contentPop" runat="server" /><td style=" border:solid 1px #999;"><asp:Button ID="btn_out" runat="server"  
                        style="height: 26px" Text="导出Excel" onclick="btn_out_Click" /></td> 
            </td></tr>
            
         <tr>
                <td colspan="4" class="TitleBar"  align="center">
                  用品统计
                </td>
            </tr>
            
         <tr>
                <td class="MenuItem" align="center"  colspan="2">
                   用品
                </td>
      
                  <td class="MenuItem" align="center">
                   消耗数
                </td>
                  <td class="MenuItem"  align="center">
                  库存
                </td>
                 
            </tr>
          
         <asp:Repeater ID="repeater" runat="server" >
                <ItemTemplate>
                    <tr>
                        <td class="RecordItem" style="text-align:center; "  colspan="2">
                            &nbsp;<%#Eval("TName")%>
                        </td>
                        
                        <td class="RecordItem" style="text-align: center; color: Blue; ">
                          <%#Convert.ToInt32(Eval("outTnums"))%>
                        </td>
                          <td class="RecordItem" style="text-align:center; color:Red;  ">
                          <%#Convert.ToInt32(Eval("TNums"))%>
                        </td>
                         
                        
                       
                    </tr>
                </ItemTemplate>
               
            </asp:Repeater>    
            
           
            <tr>
                <td colspan="4" class="TitleBar"  align="center">
                  员工统计
                </td>
            </tr>
            
                <tr>
                <td class="MenuItem" align="center" colspan="2">
                   名称
                </td>
                 <td class="MenuItem" align="center" >
                   员工名称
                </td>
                  <td class="MenuItem" align="center">
                   消耗数</td>
            </tr>
    <asp:Repeater ID="repeater1" runat="server" >
                <ItemTemplate>
                    <tr>
                        <td class="RecordItem" style="text-align:center; " colspan="2">
                            &nbsp;<%#Eval("Name")%>
                        </td>
                          <td class="RecordItem" style="text-align:center; " >
                            &nbsp;<%#Eval("TName")%>
                        </td>
                        
                        <td class="RecordItem" style="text-align: center; color: Blue; ">
                          <%#Convert.ToInt32(Eval("outTnums1"))%>
                        </td>
                       
                    </tr>
                </ItemTemplate>
               
            </asp:Repeater>    
         
        
        </table>
        <div id="chartdiv"></div>
          <div id="chartTool"></div>
         <script type="text/javascript">
             var myChart = new FusionCharts("Charts/StackedBar2D.swf", "ChartId", "700", "433", "0", "1");
             myChart.setXMLData("<%=xmltext %>>");
             myChart.render("chartdiv");   
                    </script> 
                    
         <script type="text/javascript">
                          var myChart = new FusionCharts("Charts/StackedBar2D.swf", "ChartId", "700", "433", "0", "1");
                          myChart.setXMLData("<%=xmlTool %>>");
                          myChart.render("chartTool");   
                    </script> 
    </div>
    </form>
</body>
</html>
